using System;
using System.Collections.Generic;
using System.Text;

namespace UserRegisterclient_tcp
{
    class Program
    {
        static void Main(string[] args)
        {
            contososrv.User user = new UserRegisterclient_tcp.contososrv.User();
            user.FirstName = "tcp";
            user.LastName = "wcf";
            contososrv.UserRegisterClient proxy = new UserRegisterclient_tcp.contososrv.UserRegisterClient("NetTcpBinding_IUserRegister");
            int count = proxy.RegisterUser(user);
            Console.WriteLine(count.ToString());
            Console.ReadLine();
            proxy.Close();
        }
    }
}
